package problem4;

public class Liquor extends Drinks{
    double alcoholicity;

    public Liquor(String brand, double alcoholicity) {
        super(brand);
        this.alcoholicity = alcoholicity;
    }

    @Override
    String advertisement() {
        return "This product contains alcohol.";
    }

    @Override
    String component() {
        return "alcoholicity: " + alcoholicity + "%";
    }
}
